/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package appkasir;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.JOptionPane;

/**
 *
 * @author Heri Setiyawan
 */
public class koneksi_access {
    Connection conn;
    Statement stt;
    ResultSet rst;
    String isDriverAccess = "sun.jdbc.odbc.JdbcOdbcDriver";
    protected void setKoneksi(){
        try{
            String db = "jdbc:odbc:appKasirDB";
            Class.forName(isDriverAccess);
            conn = DriverManager.getConnection(db,"","");
            stt = conn.createStatement();
            System.out.print("konek");
        }catch(Exception e){
            JOptionPane.showMessageDialog(null,"Koneksi Gagal "+e);
        }
    }
}
